﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
using ZLDC.Common.Estate;
namespace ZLDC.Estate.Quantify.Report
{
    public partial class lp_Report_addresslist : System.Web.UI.Page
    {
        public string depttype = "";//部门类型
        public string deptid = "0";
        public string statrday = "";
        public string endday = "";
        public string type;//类型为2的无法点击
        protected void Page_Load(object sender, EventArgs e)
        {
            deptid = _Request.GetString("deptid", "0");
            statrday = _Request.GetString("statrday", "0");
            endday = _Request.GetString("endday", "0");
            type = _Request.GetString("type", "0");
           
            getOnload();
        }
        protected void getOnload()
        {
            if (!IsPostBack)
            {
                string str = _Utility.GetInfoBySession().m_sStation;
                string ssss = _Utility.GetInfoBySession().m_sRoleName;
                if (ZLDC.Topo.BLL.Estate.lp_Basis.GetStationbq(_Utility.GetInfoBySession().m_sStation))
                {
                    
                    if (deptid == "0")
                    {
                        depttype = ZLDC.Topo.BLL.Estate.lp_Report_list.GetType(_Utility.GetInfoBySession().m_sDeptID);//获取部门类型
                        
                    }
                    else
                    {
                        depttype = ZLDC.Topo.BLL.Estate.lp_Report_list.GetType(deptid);//获取部门类型
                       
                    }

                }
              
            }
           
        }
    }
}
